import instance from '@/utils/request.js'


export const getProductList = (params) => {
  return instance({
    url: '/product/list',
    method: 'get',
    params
  })
};

export const getProductDetail = (id) => {
  return instance({
    url: `/product/${id}`,
    method: 'get',
  })
};
